package org.xiha.wiki.web;

import org.eclipse.jetty.server.Server;

public class WikiMain {
	private static Server server = new Server(8080);

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Thread t = new Thread(new Runnable() {

			@Override
			public void run() {
				server.setHandler(new DispatcherServlet());

				try {
					server.start();
					server.join();
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});

		t.start();
		System.out.println("finish start server");
	}

}
